package org.batatasframework.support.charts.baidu;

import java.util.ArrayList;
import java.util.List;

public class ChartSeriePie extends ChartSerie{
	
	private List<String> radius ;
	private List<String> center ;
	private Number minAngle = 5 ;
	private boolean selectedMode = false;
	//是否启用防止标签重叠策略，默认开启，在标签拥挤重叠的情况下会挪动各个标签的位置，防止标签间的重叠。
	//如果不需要开启该策略，例如圆环图这个例子中需要强制所有标签放在中心位置，可以将该值设为 false。
	private boolean avoidLabelOverlap = true;
	public ChartSeriePie() {
		super("pie");
	}

	

	public boolean isAvoidLabelOverlap() {
		return avoidLabelOverlap;
	}



	public void setAvoidLabelOverlap(boolean avoidLabelOverlap) {
		this.avoidLabelOverlap = avoidLabelOverlap;
	}



	public List<String> getRadius() {
		return radius;
	}



	public void setRadius(List<String> radius) {
		this.radius = radius;
	}



	public List<String> getCenter() {
		return center;
	}

	public void setCenter(List<String> center) {
		this.center = center;
	}
	
	
	public Number getMinAngle() {
		return minAngle;
	}

	public void setMinAngle(Number minAngle) {
		this.minAngle = minAngle;
	}
	
	

	public boolean isSelectedMode() {
		return selectedMode;
	}

	public void setSelectedMode(boolean selectedMode) {
		this.selectedMode = selectedMode;
	}

	public void setCenter(String...center) {
		if(null == this.center) this.center = new ArrayList<>();
		for(String str : center){
			this.center.add(str);// = center;
		}
	}
	public void setRadius(String...radius) {
		if(null == this.radius) this.radius = new ArrayList<>();
		for(String str : radius){
			this.radius.add(str);// = radius;
		}
	}
}
